# 和ydms产品相关的算法调试

find_package(VTK REQUIRED)

## 单点标定计算
add_executable(ydms_calibTcp ydms_calibTcp.cpp)
qt5_use_modules(ydms_calibTcp Core)
target_link_libraries(ydms_calibTcp ${OpenCV_LIBS})

## 标尺上的点数据和3D影像图一起投影到 -> dicom 2D 图
ADD_EXECUTABLE(ydms_Ruler2DProj2D ydms_Ruler2DProj2D.cpp
     ${ME_MEMATH_SRCS} ${ME_MEMATH_HDRS}
    ${ME_VTKMATH})
TARGET_LINK_LIBRARIES(ydms_Ruler2DProj2D ${VTK_LIBRARIES} ${ITK_LIBRARIES} ${OpenCV_LIBS})
vtk_module_autoinit(TARGETS ydms_Ruler2DProj2D MODULES ${VTK_LIBRARIES})


## 脑科手术模拟数据生成(用的是二维测试工装)
ADD_EXECUTABLE(ydms_BrainOpSimuData ydms_BrainOpSimuData.cpp
     ${ME_MEMATH_SRCS} ${ME_MEMATH_HDRS}
    ${ME_VTKMATH})
TARGET_LINK_LIBRARIES(ydms_BrainOpSimuData ${VTK_LIBRARIES} ${ITK_LIBRARIES} ${OpenCV_LIBS})
vtk_module_autoinit(TARGETS ydms_BrainOpSimuData MODULES ${VTK_LIBRARIES})


## 将STL文件转成DICOM文件
ADD_EXECUTABLE(ydms_STLtoDicom ydms_STLtoDicom.cpp)
TARGET_LINK_LIBRARIES(ydms_STLtoDicom ${VTK_LIBRARIES} ${ITK_LIBRARIES})
vtk_module_autoinit(TARGETS ydms_STLtoDicom MODULES ${VTK_LIBRARIES})
